package com.starbuzz;

/**
 * @author SnowmanAndBee
 * @version <version>
 * <description>
 * @date 2021/12/14 - 22:36
 */
public class Whip extends CondimentDecorator {
    Beverage beverage;

    public Whip(Beverage beverage) {
        this.beverage = beverage;
    }

    @Override
    public double cost() {
        return .1 + beverage.cost();
    }

    @Override
    public String getDescriptions() {
        return beverage.getDescriptions() + ", Whip";
    }
}
